package com.arch.dev.client.view;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FileUpload;
import com.google.gwt.user.client.ui.Widget;

public class UploadFormPanel extends Composite {

	private static UploadFormPanelUiBinder uiBinder = GWT
			.create(UploadFormPanelUiBinder.class);

	interface UploadFormPanelUiBinder extends UiBinder<Widget, UploadFormPanel> {
	}

	public UploadFormPanel() {

		initWidget(uiBinder.createAndBindUi(this));
		fileUpload.setName("uploadFormElement");

	}

	@UiField
	Button uploadButton;

	@UiField
	Button cancelButton;
	
	@UiField
	FileUpload fileUpload;
	
	public void addUploadClickHandler(ClickHandler handler) {
		uploadButton.addClickHandler(handler);
	}

	public void addCancelClickHandler(ClickHandler handler) {
		cancelButton.addClickHandler(handler);
	}

	
}
